%% Wrapper for a GType unknown to GObject-Introspection
classdef GType < glib.GThing

  methods
    function varargout = subsref(obj, S)
      error 'Cannot access members of GTypes'
    end
  
    %% This is an internal constructor!
    function obj = GType(gtype, value)
      obj@glib.GThing(gtype, value);
    end
    
    function s = char(obj)
      s = glib.g_type_name(obj.value);
    end
    
    function disp(obj)
      disp(sprintf('[GType: %s]', char(obj)));
    end

  end

end  % Classdef
